package com.whc.api.client;

import com.whc.api.config.DefaultFeignConfig;
import com.whc.api.dto.UserPageVo;

import com.whc.common.domain.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;


@FeignClient(value = "user-service",configuration = DefaultFeignConfig.class)
public interface UserClient {

    @GetMapping("/client/user/getUserByIds")
    Result<List<UserPageVo>> getUserByIds(@RequestParam("userIds") List<Long> userIds);

}
